<template>
  <div class="header">
    <div class="header-left">
      <span class="iconfont back-arrow">&#xe743;</span>
    </div>
    <div class="header-mid">
      <span class="iconfont">&#xe63c;</span>
      输入城市/景点
    </div>
    <router-link to="/City">
      <div class="header-right">
        {{ this.$store.state.city }}<span class="iconfont">&#xe65c;</span>
      </div>
    </router-link>
  </div>
</template>

<script>
export default {
  name: "HomeHeader",
};
</script>

<style scoped>
.header {
  display: flex;
  line-height: 0.86rem;
  background-color: #00bcd4;
  color: #fff;
}
.header-left {
  width: 0.64rem;
  float: left;
}
.header-right {
  min-width: 1.24rem;

  float: right;
  text-align: center;
  margin-left: 0.2rem;
  margin-right: 0.2rem;
  color: blue;
}
.header-mid {
  flex: 1;
  height: 0.64rem;
  line-height: 0.64rem;
  margin-top: 0.12rem;
  margin-left: 0.12rem;
  background: #ccc;
  border-radius: 0.1rem;
}
.back-arrow {
  text-align: center;
}
</style>
